<template>
	<view>
		<view class="developer-item">
			<view class="left">
				<image :src="user_icon" mode=""></image>
				<view class="userInfo">
					<text style="font-size: 38rpx;">{{ username }}</text>
					<view style="color: #9a9a9a; font-size: 28rpx;">{{ college }}</view>
					<view class="" style="height: 30rpx;"></view>
					<view class="work">{{ work }}</view>
				</view>
			</view>
			<view class="right">
				<view class="identity">{{ identity }}</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			user_icon: {
				type: String,
				default:'https://img2.baidu.com/it/u=3469718527,3353982908&fm=253&fmt=auto&app=138&f=JPEG?w=550&h=409'
			},
			username: {
				type:String,
				default: '张三'
			},
			identity: {
				type:String,
				default:'开发人员'
			},
			college:{
				type: String,
				default:'计算机学院'
			},
			work:{
				type: String,
				default:'APP开发'
			}
		}
	}
</script>

<style lang="less">
	.developer-item {
		position: relative;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 200rpx;
		padding: 0 50rpx;
		.left {
			image {
				width: 140rpx;
				height: 140rpx;
				border-radius: 50%;
			}
			.userInfo {
				position: absolute;
				top: 20rpx;
				left: 220rpx;
				display: flex;
				padding: 10rpx 0;
				flex-direction: column;
				justify-content: space-between;
				.work {
					position: absolute;
					bottom: 0;
					padding: 0 10rpx;
					background-color: #c6c6c6;
					font-size: 24rpx;color: #FFF;
					border-radius: 10rpx;
					text-align: center;
				}
			}
		}
		.right {
			.identity {
				width: 105rpx;
				height: 50rpx;
				border: 4rpx solid #66c2a9;
				text-align: center;
				line-height: 50rpx;
				color: #66c2a9;
				border-radius: 35rpx;
				font-weight: 700;
			}
		}
	}
</style>
